package HttpUtils;

import android.content.Context;

import java.math.BigDecimal;

import http.HttpBodyBase;

/**
 * Created by Administrator on 2016/3/15.
 */
public class HttpChargeRequest extends HttpBodyBase {
    public HttpChargeRequest(Context context,int type) {
        super(context);
        switch (type){
            case 0:
                setAction("/index.php/Home/Customers/Recharge");
                break;
            case 1:
                setAction("/index.php/Home/Pay/pay_recharge");
                break;
            case 2:
                setAction("/index.php/Home/Pay/pay_recharge_alipay");
                break;
        }
    }
    public void setMoney(BigDecimal money, int payment ){
        params.put("payment",payment );
        params.put("money",String.valueOf(money));
    }
    public void setWxPay(String order_title){
        params.put("order_title",order_title);
    }
}
